Skip to content

Misc fixes - #397

Merged
LossyDragon merged 18 commits into
Longi94:masterfrom
LossyDragon:misc-fixes
Nov 11, 2026
Merged

LossyDragon merged 18 commits into
Longi94:masterfrom
LossyDragon:misc-fixes

Conversation

@LossyDragon

@LossyDragon LossyDragon commented Nov 10, 2026 •

Copy link
Copy Markdown
Collaborator

Kind of a mashup of various commits, some fixes for JavaSteam and others matching parity with SteamKit

SK Parity:

  • Constant-time HMAC comparison (SK a30daf2e): CryptoHelper.symmetricDecryptHMACIV compares the HMAC with MessageDigest.isEqual instead of an early-exit loop.
  • Manifest file mapping overrun (SK a63d411f): Steam3Manifest throws IOException when a file mapping reads past the declared mapping size. The filename null-trim half of that SK commit was already correct here.
  • Dead token limit removed (SK 131fb033): the unused count < 1023 branch is gone from KVTextReader. The number-formatting half didn't apply to Kotlin.
  • PICS product info parsing checks (SK 854242fb):
    • Text buffers only lose a trailing null byte, and a failed parse yields an empty KeyValue (PICSProductInfo, PrivateBetaCallback).
    • isUseHttp requires a metadata-only response and a non-zero http_min_size.
  • PICS product info parsing checks (SK 854242fb):
    • Text buffers only lose a trailing null byte, and a failed parse yields an empty KeyValue (PICSProductInfo, PrivateBetaCallback).
    • isUseHttp requires a metadata-only response and a non-zero http_min_size.
    • Package buffers are parsed only when their format value is 1.
    • WebSocket and other Connection fixes.
    • Disconnect on WebSocket Text Messages (SK 28a2ad8)
    • Update EOSTypes (SK 0f3c6ab)

JS Fixes:

  • waitForCallback after close(): it threw nothing and hung forever; it now throws CancellationException. A cancelled waitForCallbackFuture also no longer swallows the next callback.
  • GlobalID.startTime getter: it returned dates 35 years early because the 2005 epoch was never added back.
  • HMAC mismatch exception: a mismatch now surfaces as CryptoException, not RuntimeException.
  • Build after the dependency update:
    • Dependency versions bumped and a JDK 17 toolchain added.
    • Forked javac given a 2 GB heap, fixing the OutOfMemoryError in :compileJava.
    • Dokka's file size limit raised, clearing "unresolved" warnings.
    • SteamCloud methods use the client's coroutine scope.
    • AsyncJob made async.
    • Various code guarding.
    • SteamMatchmaking uses addAllMetadata for adding metadata.
    • AuthSession.pollDeviceConfirmation delays before the first poll.
    • Various linting on Java classes to match JDK 17 style.

@LossyDragon
LossyDragon merged commit e2e80e8 into Longi94:master Nov 11, 2026
1 check passed
@LossyDragon
LossyDragon deleted the misc-fixes branch November 11, 2026 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant